
{% if ansible_distribution_major_version == '6' %}
Alias /kerneltest/static /usr/lib/python2.6/site-packages/kerneltest/static/
{% else %}
Alias /kerneltest/static /usr/lib/python2.7/site-packages/kerneltest/static/
{% endif %}

WSGIDaemonProcess kerneltest user=apache maximum-requests=1000 display-name=kerneltest processes={{wsgi_procs}} threads={{wsgi_threads}}
WSGISocketPrefix run/wsgi
WSGIRestrictStdout On
WSGIRestrictSignal Off
WSGIPythonOptimize 1

WSGIScriptAlias /kerneltest /var/www/kerneltest.wsgi

<Location />
    WSGIProcessGroup kerneltest
    <IfModule mod_authz_core.c>
        # Apache 2.4
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
         # Apache 2.2
        Order deny,allow
        Allow from all
    </IfModule>
</Location>
